WPS Office.apk(点击下载) / nni.java


package defpackage;

import android.support.v4.internal.view.SupportMenu;
import cn.wps.moffice.writer.core.TextDocument;
import cn.wps.shareplay.message.Message;
import com.mopub.common.AdType;
import com.mopub.mobileads.VastExtensionXmlManager;
import com.mopub.mobileads.resource.DrawableConstants;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import org.apache.commons.httpclient.HttpState;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.james.mime4j.field.ContentDispositionField;
import org.apache.james.mime4j.field.ContentTypeField;
import org.xml.sax.Attributes;

/* renamed from: nni  reason: default package */
public final class nni {
    private static String CHARSET = ContentTypeField.PARAM_CHARSET;
    private static String pPK = "panose";
    private static String pPL = "pitchFamily";
    private static String pPM = "typeface";
    private static String pPN = "script";
    private static Random pPO = new Random();
    private static Map<String, Integer> pPP = null;

    public static Float LA(String str) {
        if (str == null) {
            return null;
        }
        noa noa = new noa(str);
        if (noa.Dd == null) {
            return null;
        }
        if (noa.pQt == null) {
            return noa.Dd;
        }
        switch (noa.pQt) {
            case PT:
                return Float.valueOf(noa.Dd.floatValue() * 20.0f);
            default:
                return noa.Dd;
        }
    }

    public static int LB(String str) {
        if (str == null || str.length() == 0 || str.equalsIgnoreCase("tb")) {
            return 0;
        }
        if (str.equalsIgnoreCase("rl")) {
            return 1;
        }
        if (str.equalsIgnoreCase("lr")) {
            return 3;
        }
        if (str.equalsIgnoreCase("tbV")) {
            return 4;
        }
        if (str.equalsIgnoreCase("rlV")) {
            return 5;
        }
        if (str.equalsIgnoreCase("lrV")) {
            return 0;
        }
        if (str.equalsIgnoreCase("btLr")) {
            return 3;
        }
        if (str.equalsIgnoreCase("lrTb")) {
            return 0;
        }
        if (str.equalsIgnoreCase("lrTbV")) {
            return 4;
        }
        if (str.equalsIgnoreCase("tbLrV")) {
            return 0;
        }
        if (str.equalsIgnoreCase("tbRl")) {
            return 1;
        }
        if (str.equalsIgnoreCase("tbRlV")) {
            return 5;
        }
        ew.eI();
        return 0;
    }

    public static synchronized Integer LC(String str) {
        Integer num;
        synchronized (nni.class) {
            if (str != null) {
                if (str.length() > 0) {
                    if (pPP == null) {
                        HashMap hashMap = new HashMap();
                        pPP = hashMap;
                        hashMap.put("decimal", 0);
                        pPP.put("upperRoman", 1);
                        pPP.put("lowerRoman", 2);
                        pPP.put("upperLetter", 3);
                        pPP.put("lowerLetter", 4);
                        pPP.put("ordinal", 5);
                        pPP.put("cardinalText", 6);
                        pPP.put("ordinalText", 7);
                        pPP.put("hex", 8);
                        pPP.put("chicago", 9);
                        pPP.put("ideographDigital", 10);
                        pPP.put("japaneseCounting", 11);
                        pPP.put("aiueo", 12);
                        pPP.put("iroha", 13);
                        pPP.put("decimalFullWidth", 14);
                        pPP.put("decimalHalfWidth", 15);
                        pPP.put("japaneseLegal", 16);
                        pPP.put("japaneseDigitalTenThousand", 17);
                        pPP.put("decimalEnclosedCircle", 18);
                        pPP.put("decimalFullWidth2", 19);
                        pPP.put("aiueoFullWidth", 20);
                        pPP.put("irohaFullWidth", 21);
                        pPP.put("decimalZero", 22);
                        pPP.put("bullet", 23);
                        pPP.put("ganada", 24);
                        pPP.put("chosung", 25);
                        pPP.put("decimalEnclosedFullstop", 26);
                        pPP.put("decimalEnclosedParen", 27);
                        pPP.put("decimalEnclosedCircleChinese", 28);
                        pPP.put("ideographEnclosedCircle", 29);
                        pPP.put("ideographTraditional", 30);
                        pPP.put("ideographZodiac", 31);
                        pPP.put("ideographZodiacTraditional", 32);
                        pPP.put("taiwaneseCounting", 33);
                        pPP.put("ideographLegalTraditional", 34);
                        pPP.put("taiwaneseCountingThousand", 35);
                        pPP.put("taiwaneseDigital", 36);
                        pPP.put("chineseCounting", 37);
                        pPP.put("chineseLegalSimplified", 38);
                        pPP.put("chineseCountingThousand", 39);
                        pPP.put("koreanDigital", 41);
                        pPP.put("koreanCounting", 42);
                        pPP.put("koreanLegal", 43);
                        pPP.put("koreanDigital2", 44);
                        pPP.put("vietnameseCounting", 56);
                        pPP.put("russianLower", 58);
                        pPP.put("russianUpper", 59);
                        pPP.put("none", 255);
                        pPP.put("numberInDash", 57);
                        pPP.put("hebrew1", 45);
                        pPP.put("hebrew2", 47);
                        pPP.put("arabicAlpha", 46);
                        pPP.put("arabicAbjad", 48);
                        pPP.put("hindiVowels", 49);
                        pPP.put("hindiConsonants", 50);
                        pPP.put("hindiNumbers", 51);
                        pPP.put("hindiCounting", 52);
                        pPP.put("thaiLetters", 53);
                        pPP.put("thaiNumbers", 54);
                        pPP.put("thaiCounting", 55);
                        pPP.put("bahtText", 255);
                        pPP.put("dollarText", 255);
                        pPP.put(AdType.CUSTOM, 255);
                    }
                    num = pPP.get(str);
                }
            }
            num = null;
        }
        return num;
    }

    private static Boolean Ly(String str) {
        if (str == null || str.length() <= 0) {
            return null;
        }
        return Lz(str) ? Boolean.FALSE : Boolean.TRUE;
    }

    private static boolean Lz(String str) {
        ew.assertNotNull("str should not be null", str);
        return "off".equalsIgnoreCase(str) || "0".equals(str) || HttpState.PREEMPTIVE_DEFAULT.equalsIgnoreCase(str) || "f".equalsIgnoreCase(str);
    }

    static int SR(int i) {
        if (-1 == i) {
            return 3;
        }
        switch (i) {
            case 99917:
                return 3;
            case 109073:
                return 0;
            case 110817:
                return 2;
            case 3005871:
                return 1;
            default:
                ew.eI();
                return 3;
        }
    }

    public static int a(Long l, String str) {
        if (l != null) {
            return l.intValue();
        }
        if (str == null || str.equalsIgnoreCase(ContentDispositionField.DISPOSITION_TYPE_INLINE)) {
            return 0;
        }
        if (str.equalsIgnoreCase("top")) {
            return -4;
        }
        if (str.equalsIgnoreCase("center")) {
            return -8;
        }
        if (str.equalsIgnoreCase("bottom")) {
            return -12;
        }
        if (str.equalsIgnoreCase("inside")) {
            return -16;
        }
        if (str.equalsIgnoreCase("outside")) {
            return -20;
        }
        ew.eI();
        return 0;
    }

    public static String a(Attributes attributes, String str, String str2) {
        ew.assertNotNull("attributes should not be null", attributes);
        ew.assertNotNull("name should not be null", str);
        ew.assertNotNull("namespace should not be null", str2);
        if (attributes.getLength() == 0) {
            return null;
        }
        return attributes.getValue(str2, str);
    }

    public static mzt a(TextDocument textDocument, kfz kfz, Attributes attributes) {
        ew.assertNotNull("dst should not be null", kfz);
        ew.assertNotNull("trackChange should not be null", attributes);
        mzt bg = bg(attributes);
        a(textDocument, kfz, bg);
        return bg;
    }

    public static mzt a(kfz kfz, Attributes attributes) {
        ew.assertNotNull("dst should not be null", kfz);
        ew.assertNotNull("trackChange should not be null", attributes);
        mzt mzt = new mzt(3);
        a(mzt, attributes);
        kfz.b(47, true);
        kfz.h(48, mzt);
        return mzt;
    }

    /* JADX WARNING: Removed duplicated region for block: B:10:? A[RETURN, SYNTHETIC] */
    /* JADX WARNING: Removed duplicated region for block: B:6:0x001d  */
    public static void a(TextDocument textDocument, kfz kfz, mzt mzt) {
        boolean z;
        Object sp = kfz.sp(45);
        if (sp != null) {
            if (mzt.oSM.a(((mzt) sp).oSM).booleanValue()) {
                z = false;
                if (!z) {
                    kfz.h(46, mzt);
                    kfz.setInt(50, k(textDocument));
                    kfz.b(55, true);
                    return;
                }
                return;
            }
            kfz.h(45, null);
            kfz.setInt(49, 0);
            kfz.b(54, false);
        }
        z = true;
        if (!z) {
        }
    }

    public static void a(String str, mzf mzf) {
        Byte aM;
        Byte aM2;
        Byte aM3;
        Byte aM4;
        Byte aM5;
        Byte aM6;
        Byte aM7;
        Byte aM8;
        Byte aM9;
        Byte aM10;
        if (20 == str.length() && (aM = aM(str, 0)) != null && (aM2 = aM(str, 2)) != null && (aM3 = aM(str, 4)) != null && (aM4 = aM(str, 6)) != null && (aM5 = aM(str, 8)) != null && (aM6 = aM(str, 10)) != null && (aM7 = aM(str, 12)) != null && (aM8 = aM(str, 14)) != null && (aM9 = aM(str, 16)) != null && (aM10 = aM(str, 18)) != null) {
            mzf.L(aM7.byteValue());
            mzf.J(aM5.byteValue());
            mzf.F(aM.byteValue());
            mzf.O(aM10.byteValue());
            mzf.M(aM8.byteValue());
            mzf.N(aM9.byteValue());
            mzf.I(aM4.byteValue());
            mzf.G(aM2.byteValue());
            mzf.K(aM6.byteValue());
            mzf.H(aM3.byteValue());
        }
    }

    public static void a(mzt mzt, Attributes attributes) {
        ew.assertNotNull("revision should not be null", mzt);
        ew.assertNotNull("trackChange should not be null", attributes);
        String c = c(attributes, "author");
        ew.eK();
        if (!(c == null || c.length() == 0)) {
            mzt.author = c;
        }
        Date bi = bi(attributes);
        ew.eK();
        if (bi != null) {
            mzt.oSM = nnm.g(bi);
        }
    }

    private static Byte aM(String str, int i) {
        Integer G = fk.G(str.substring(i, i + 2));
        if (G == null) {
            return null;
        }
        return Byte.valueOf(G.byteValue());
    }

    public static nal aR(Attributes attributes) {
        ew.assertNotNull("framePr should not be null!", attributes);
        Long e = e(attributes, "h");
        if (e == null) {
            return null;
        }
        String c = c(attributes, "hRule");
        if (c == null) {
            return new nal(e.intValue() | 32768);
        }
        if (c.equalsIgnoreCase("atLeast")) {
            return new nal(e.intValue() | 32768);
        }
        if (c.equalsIgnoreCase("exact")) {
            return new nal(e.intValue());
        }
        return null;
    }

    public static mza aS(Attributes attributes) {
        int i = 0;
        ew.assertNotNull("framePr should not be null!", attributes);
        String c = c(attributes, "dropCap");
        if (c == null) {
            return null;
        }
        mza mza = new mza();
        ew.assertNotNull("dropCapType should not be null!", c);
        if (!c.equalsIgnoreCase("none")) {
            if (c.equalsIgnoreCase("drop")) {
                i = 1;
            } else if (c.equalsIgnoreCase("margin")) {
                i = 2;
            } else {
                ew.eI();
            }
        }
        mza.puI = i;
        Long e = e(attributes, "lines");
        if (e != null) {
            mza.lines = e.intValue();
        }
        return mza;
    }

    public static evq aT(Attributes attributes) {
        int i;
        int b = b(attributes, "color");
        int b2 = b(attributes, "fill");
        int aU = aU(attributes);
        if (-1 != aU) {
            switch (aU) {
                case -1816487236:
                    i = 14;
                    break;
                case -1458908175:
                    i = 18;
                    break;
                case -1101361065:
                    i = 21;
                    break;
                case -940091366:
                    i = 16;
                    break;
                case -408088354:
                    i = 15;
                    break;
                case -111921924:
                    i = 25;
                    break;
                case 109073:
                    i = SupportMenu.USER_MASK;
                    break;
                case 3435380:
                    i = 2;
                    break;
                case 94746189:
                    i = 0;
                    break;
                case 106496704:
                    i = 3;
                    break;
                case 106496706:
                    i = 37;
                    break;
                case 106496709:
                    i = 38;
                    break;
                case 106496735:
                    i = 4;
                    break;
                case 106496740:
                    i = 5;
                    break;
                case 106496766:
                    i = 6;
                    break;
                case 106496771:
                    i = 43;
                    break;
                case 106496773:
                    i = 44;
                    break;
                case 106496797:
                    i = 7;
                    break;
                case 106496802:
                    i = 46;
                    break;
                case 106496828:
                    i = 8;
                    break;
                case 106496833:
                    i = 49;
                    break;
                case 106496859:
                    i = 9;
                    break;
                case 106496861:
                    i = 51;
                    break;
                case 106496864:
                    i = 52;
                    break;
                case 106496890:
                    i = 10;
                    break;
                case 106496895:
                    i = 11;
                    break;
                case 106496921:
                    i = 12;
                    break;
                case 106496926:
                    i = 57;
                    break;
                case 106496928:
                    i = 58;
                    break;
                case 106496952:
                    i = 13;
                    break;
                case 106496957:
                    i = 60;
                    break;
                case 109618859:
                    i = 1;
                    break;
                case 1157367701:
                    i = 19;
                    break;
                case 1285380881:
                    i = 23;
                    break;
                case 1398484609:
                    i = 22;
                    break;
                case 1566769496:
                    i = 24;
                    break;
                case 1785207349:
                    i = 20;
                    break;
                case 1978653592:
                    i = 17;
                    break;
            }
            return evq.Q(b, b2, i);
        }
        i = -2;
        return evq.Q(b, b2, i);
    }

    public static int aU(Attributes attributes) {
        if (attributes instanceof svu) {
            svu svu = (svu) attributes;
            if (svu.getLength() == 0) {
                return -1;
            }
            return svu.gr(aom.aTP, "val");
        }
        String aV = aV(attributes);
        if (aV != null) {
            return aV.hashCode();
        }
        return -1;
    }

    public static String aV(Attributes attributes) {
        if (attributes.getLength() == 0) {
            return null;
        }
        return attributes.getValue(aom.aTP, "val");
    }

    public static boolean aW(Attributes attributes) {
        Boolean Ly;
        if (attributes instanceof svu) {
            return ((svu) attributes).s(aom.aTP, "val", true);
        }
        String value = attributes.getLength() == 0 ? null : attributes.getValue(aom.aTP, "val");
        if (value == null || (Ly = Ly(value)) == null) {
            return true;
        }
        return Ly.booleanValue();
    }

    public static boolean aX(Attributes attributes) {
        String value = attributes.getLength() == 0 ? null : attributes.getValue("http://schemas.openxmlformats.org/officeDocument/2006/math", "val");
        if (value == null) {
            return true;
        }
        Boolean bool = Boolean.TRUE;
        if (value != null && value.length() > 0) {
            bool = Lz(value) ? Boolean.FALSE : Boolean.TRUE;
        }
        return bool.booleanValue();
    }

    public static Boolean aY(Attributes attributes) {
        ew.assertNotNull("attributes should not be null", attributes);
        if (attributes.getLength() == 0) {
            return Boolean.TRUE;
        }
        String value = attributes.getValue(aom.aTP, "val");
        return value == null ? Boolean.TRUE : Lz(value) ? Boolean.FALSE : Boolean.TRUE;
    }

    public static Integer aZ(Attributes attributes) {
        if (attributes instanceof svu) {
            return ((svu) attributes).gq(aom.aTP, "val");
        }
        String value = attributes.getValue(aom.aTP, "val");
        if (value == null) {
            return null;
        }
        return fk.E(value);
    }

    public static int b(Long l, String str) {
        if (l != null) {
            return l.intValue();
        }
        if (str == null || str.equalsIgnoreCase("left")) {
            return 0;
        }
        if (str.equalsIgnoreCase("center")) {
            return -4;
        }
        if (str.equalsIgnoreCase("right")) {
            return -8;
        }
        if (str.equalsIgnoreCase("inside")) {
            return -12;
        }
        if (str.equalsIgnoreCase("outside")) {
            return -16;
        }
        ew.eI();
        return 0;
    }

    private static int b(Attributes attributes, String str) {
        String c = c(attributes, str);
        if (c == null || c.equalsIgnoreCase("auto")) {
            return -16777216;
        }
        if (fk.G(c) != null) {
            return fk.G(c).intValue();
        }
        return -2;
    }

    public static mzt b(TextDocument textDocument, kfz kfz, Attributes attributes) {
        ew.assertNotNull("dst should not be null", kfz);
        ew.assertNotNull("trackChange should not be null", attributes);
        mzt bh = bh(attributes);
        b(textDocument, kfz, bh);
        return bh;
    }

    public static mzt b(kfz kfz, Attributes attributes) {
        ew.assertNotNull("dst should not be null", kfz);
        ew.assertNotNull("trackChange should not be null", attributes);
        mzt mzt = new mzt(3);
        a(mzt, attributes);
        kfz.h(363, mzt);
        kfz.b(364, true);
        return mzt;
    }

    /* JADX WARNING: Removed duplicated region for block: B:10:? A[RETURN, SYNTHETIC] */
    /* JADX WARNING: Removed duplicated region for block: B:6:0x001d  */
    public static void b(TextDocument textDocument, kfz kfz, mzt mzt) {
        boolean z;
        Object sp = kfz.sp(46);
        if (sp != null) {
            if (mzt.oSM.a(((mzt) sp).oSM).booleanValue()) {
                z = false;
                if (!z) {
                    kfz.h(45, mzt);
                    kfz.setInt(49, k(textDocument));
                    kfz.b(54, true);
                    return;
                }
                return;
            }
            kfz.h(46, null);
            kfz.setInt(50, 0);
            kfz.b(55, false);
        }
        z = true;
        if (!z) {
        }
    }

    public static Integer ba(Attributes attributes) {
        return g(attributes, "val");
    }

    public static String bb(Attributes attributes) {
        if (attributes.getLength() == 0) {
            return null;
        }
        return attributes.getValue("http://schemas.openxmlformats.org/officeDocument/2006/math", "val");
    }

    public static Character bc(Attributes attributes) {
        String value = attributes.getValue("http://schemas.openxmlformats.org/officeDocument/2006/math", "val");
        if (value == null) {
            return null;
        }
        return fk.F(value);
    }

    public static Float bd(Attributes attributes) {
        return h(attributes, "val");
    }

    public static myn be(Attributes attributes) {
        int i = 209;
        float b = nnm.b(e(attributes, "sz"));
        String c = c(attributes, "val");
        if (c != null) {
            switch (c.hashCode()) {
                case -2145290694:
                    i = 84;
                    break;
                case -2029315969:
                    i = 184;
                    break;
                case -2005575211:
                    i = HttpStatus.SC_NON_AUTHORITATIVE_INFORMATION;
                    break;
                case -1974175081:
                    i = 192;
                    break;
                case -1946174770:
                    i = 190;
                    break;
                case -1897187662:
                    i = 198;
                    break;
                case -1876828253:
                    i = 87;
                    break;
                case -1782778218:
                    i = 111;
                    break;
                case -1757327718:
                    i = 101;
                    break;
                case -1743979268:
                    i = 106;
                    break;
                case -1720100110:
                    i = 9;
                    break;
                case -1705712426:
                    i = 186;
                    break;
                case -1671286693:
                    i = 71;
                    break;
                case -1655890792:
                    i = 136;
                    break;
                case -1635992324:
                    i = 195;
                    break;
                case -1628803042:
                    i = 199;
                    break;
                case -1626439625:
                    i = 188;
                    break;
                case -1618373187:
                    i = 86;
                    break;
                case -1559737073:
                    i = 222;
                    break;
                case -1555564219:
                    i = 72;
                    break;
                case -1524789476:
                    i = 94;
                    break;
                case -1523833410:
                    i = HttpStatus.SC_PARTIAL_CONTENT;
                    break;
                case -1495899622:
                    i = 77;
                    break;
                case -1468805641:
                    i = 181;
                    break;
                case -1466186479:
                    i = 112;
                    break;
                case -1460245953:
                    i = 17;
                    break;
                case -1443583087:
                    i = 18;
                    break;
                case -1411061671:
                    i = 64;
                    break;
                case -1390180208:
                    i = 119;
                    break;
                case -1368075862:
                    i = 83;
                    break;
                case -1357535707:
                    i = 97;
                    break;
                case -1338941519:
                    i = 7;
                    break;
                case -1325970902:
                    i = 6;
                    break;
                case -1325958191:
                    i = 3;
                    break;
                case -1310330585:
                    i = 120;
                    break;
                case -1310330584:
                    i = 121;
                    break;
                case -1310330583:
                    i = 0;
                    break;
                case -1257492289:
                    i = 108;
                    break;
                case -1236577165:
                    i = 90;
                    break;
                case -1236110113:
                    i = 68;
                    break;
                case -1235553321:
                    i = 91;
                    break;
                case -1221256979:
                    i = 144;
                    break;
                case -1147295168:
                    i = 93;
                    break;
                case -1138712517:
                    i = 74;
                    break;
                case -1136815014:
                    i = 224;
                    break;
                case -1102672683:
                    i = 23;
                    break;
                case -1068356470:
                    i = 159;
                    break;
                case -1005510060:
                    i = 26;
                    break;
                case -991808881:
                    i = 171;
                    break;
                case -972633573:
                    i = 24;
                    break;
                case -963032448:
                    i = 115;
                    break;
                case -951639254:
                    i = HttpStatus.SC_NO_CONTENT;
                    break;
                case -939797518:
                    i = 105;
                    break;
                case -935627935:
                    i = 193;
                    break;
                case -918180252:
                    i = 16;
                    break;
                case -916140291:
                    i = 14;
                    break;
                case -909897856:
                    i = 183;
                    break;
                case -902265784:
                    i = 1;
                    break;
                case -865465250:
                    i = 10;
                    break;
                case -814008535:
                case -814008534:
                    break;
                case -814008469:
                    i = HttpStatus.SC_MULTI_STATUS;
                    break;
                case -813635787:
                    i = 191;
                    break;
                case -804293214:
                    i = 127;
                    break;
                case -795836516:
                    i = 160;
                    break;
                case -794622826:
                    i = 167;
                    break;
                case -791260943:
                    i = 155;
                    break;
                case -768502088:
                    i = 214;
                    break;
                case -768502087:
                    i = 215;
                    break;
                case -708746999:
                    i = 142;
                    break;
                case -702083096:
                    i = 226;
                    break;
                case -682617594:
                    i = 170;
                    break;
                case -580245368:
                    i = 99;
                    break;
                case -567235341:
                    i = 11;
                    break;
                case -550572475:
                    i = 12;
                    break;
                case -548033304:
                    i = 133;
                    break;
                case -501797748:
                    i = 109;
                    break;
                case -403724198:
                    i = 130;
                    break;
                case -403724197:
                    i = 131;
                    break;
                case -399591445:
                    i = 15;
                    break;
                case -363182203:
                    i = 75;
                    break;
                case -288384673:
                    i = 122;
                    break;
                case -288384672:
                    i = 123;
                    break;
                case -254678299:
                    i = 157;
                    break;
                case -197105032:
                    i = 129;
                    break;
                case -195033433:
                    i = 151;
                    break;
                case -195033432:
                    i = 152;
                    break;
                case -115860251:
                    i = 174;
                    break;
                case -113970455:
                    i = 145;
                    break;
                case -106082034:
                    i = 148;
                    break;
                case -100267818:
                    i = 96;
                    break;
                case -56463554:
                    i = 223;
                    break;
                case -53550666:
                    i = 25;
                    break;
                case -52979237:
                    i = 76;
                    break;
                case -23649573:
                    i = 78;
                    break;
                case 98878:
                    i = 113;
                    break;
                case 109073:
                    i = 255;
                    break;
                case 114252:
                    i = HttpStatus.SC_CREATED;
                    break;
                case 3016446:
                    i = 80;
                    break;
                case 3135424:
                    i = 125;
                    break;
                case 3143044:
                    i = 126;
                    break;
                case 3169028:
                    i = 137;
                    break;
                case 3387192:
                    i = 0;
                    break;
                case 3619754:
                    i = 216;
                    break;
                case 3642105:
                    i = 20;
                    break;
                case 26129558:
                    i = 104;
                    break;
                case 47890689:
                    i = 69;
                    break;
                case 64932525:
                    i = 140;
                    break;
                case 64932526:
                    i = 141;
                    break;
                case 89650992:
                    i = 139;
                    break;
                case 93745882:
                    i = 81;
                    break;
                case 99460242:
                    i = 146;
                    break;
                case 100360477:
                    i = 27;
                    break;
                case 104080786:
                    i = 158;
                    break;
                case 106122849:
                    i = 162;
                    break;
                case 108518467:
                    i = 182;
                    break;
                case 109757537:
                    i = 196;
                    break;
                case 110330781:
                    i = 2;
                    break;
                case 110624917:
                    i = HttpStatus.SC_RESET_CONTENT;
                    break;
                case 140692538:
                    i = 180;
                    break;
                case 143348510:
                    i = 67;
                    break;
                case 198290321:
                    i = 70;
                    break;
                case 200104905:
                    i = 143;
                    break;
                case 203060523:
                    i = 132;
                    break;
                case 205329004:
                    i = 134;
                    break;
                case 220059626:
                    i = 82;
                    break;
                case 235145687:
                    i = 110;
                    break;
                case 399098644:
                    i = 92;
                    break;
                case 443801652:
                    i = 161;
                    break;
                case 455807736:
                    i = 168;
                    break;
                case 457038902:
                    i = 169;
                    break;
                case 488527967:
                    i = 218;
                    break;
                case 522469805:
                    i = 85;
                    break;
                case 569778851:
                    i = 114;
                    break;
                case 570451800:
                    i = 73;
                    break;
                case 585088712:
                    i = 100;
                    break;
                case 599574657:
                    i = 103;
                    break;
                case 604380781:
                    i = 217;
                    break;
                case 631285309:
                    i = 66;
                    break;
                case 634641655:
                    i = 166;
                    break;
                case 685145919:
                    i = DrawableConstants.CtaButton.WIDTH_DIPS;
                    break;
                case 750867693:
                    i = 163;
                    break;
                case 751454951:
                    i = 95;
                    break;
                case 778842730:
                    i = 21;
                    break;
                case 787946148:
                    i = 175;
                    break;
                case 791127294:
                    i = 164;
                    break;
                case 792151138:
                    i = 165;
                    break;
                case 831753445:
                    i = 172;
                    break;
                case 836603130:
                    i = 153;
                    break;
                case 839444514:
                    i = 156;
                    break;
                case 894992888:
                    i = 19;
                    break;
                case 950484242:
                    i = 98;
                    break;
                case 970447669:
                    i = 220;
                    break;
                case 986980514:
                    i = 117;
                    break;
                case 996680995:
                    i = 179;
                    break;
                case 1009718970:
                    i = 221;
                    break;
                case 1059658302:
                    i = 102;
                    break;
                case 1125174445:
                    i = 219;
                    break;
                case 1149907457:
                    i = 22;
                    break;
                case 1178203456:
                    i = HttpStatus.SC_OK;
                    break;
                case 1179965241:
                    i = 149;
                    break;
                case 1275706148:
                    i = 178;
                    break;
                case 1275706149:
                    i = 177;
                    break;
                case 1283098727:
                    i = 173;
                    break;
                case 1286168665:
                    i = 225;
                    break;
                case 1316756788:
                    i = 197;
                    break;
                case 1317843547:
                    i = 88;
                    break;
                case 1449026890:
                    i = 138;
                    break;
                case 1502965793:
                    i = 194;
                    break;
                case 1531748241:
                    i = 124;
                    break;
                case 1550325334:
                    i = 65;
                    break;
                case 1597759161:
                    i = 227;
                    break;
                case 1602466491:
                    i = HttpStatus.SC_ACCEPTED;
                    break;
                case 1612281289:
                    i = 176;
                    break;
                case 1613622483:
                    i = 154;
                    break;
                case 1658765186:
                    i = 185;
                    break;
                case 1755812409:
                    i = 210;
                    break;
                case 1755812410:
                    i = 211;
                    break;
                case 1788003500:
                    i = 13;
                    break;
                case 1839859128:
                    i = 128;
                    break;
                case 1843141755:
                    i = 8;
                    break;
                case 1844969107:
                    i = 118;
                    break;
                case 1967322093:
                    i = 147;
                    break;
                case 1968404680:
                    i = 187;
                    break;
                case 1980598522:
                    i = 189;
                    break;
                case 2054158719:
                    i = 212;
                    break;
                case 2054158720:
                    i = 213;
                    break;
                case 2062954480:
                    i = 107;
                    break;
                case 2083571970:
                    i = 89;
                    break;
                case 2109683937:
                    i = 79;
                    break;
                case 2117716934:
                    i = 135;
                    break;
                case 2120073363:
                    i = 116;
                    break;
                default:
                    i = 0;
                    break;
            }
        } else {
            i = 0;
        }
        return myn.a(b, i, b(attributes, "color"), nnm.a(e(attributes, "space")), nnm.e(f(attributes, "shadow")), nnm.d(f(attributes, "frame")));
    }

    public static mys bf(Attributes attributes) {
        Float r;
        float f = 0.0f;
        ew.assertNotNull("attributes is not null!", attributes);
        int SR = SR(d(attributes, VastExtensionXmlManager.TYPE));
        ew.eH();
        if (!(attributes == null || 1 == SR || 2 == SR || (r = nnv.r(attributes, "w")) == null)) {
            f = r.floatValue();
        }
        return mys.aV(0, SR, (int) f);
    }

    public static mzt bg(Attributes attributes) {
        ew.assertNotNull("trackChange should not be null", attributes);
        mzt mzt = new mzt(2);
        a(mzt, attributes);
        return mzt;
    }

    public static mzt bh(Attributes attributes) {
        ew.assertNotNull("trackChange should not be null", attributes);
        mzt mzt = new mzt(1);
        a(mzt, attributes);
        return mzt;
    }

    public static Date bi(Attributes attributes) {
        String c = c(attributes, "date");
        if (c == null || c.length() == 0) {
            return null;
        }
        return nnv.LI(c);
    }

    public static mzf bj(Attributes attributes) {
        mzf mzf = new mzf();
        Integer i = i(attributes, CHARSET);
        if (i != null) {
            mzf.aq(i.shortValue());
        }
        Integer i2 = i(attributes, pPL);
        if (i2 != null) {
            mzf.E(i2.byteValue());
        }
        String c = c(attributes, pPK);
        if (c != null) {
            a(c, mzf);
        }
        String c2 = c(attributes, pPM);
        if (c2 != null) {
            mzf.Fr(c2);
        }
        return mzf;
    }

    public static myk bk(Attributes attributes) {
        myk myk = new myk();
        String c = c(attributes, pPN);
        if (c != null) {
            myk.pub = c.hashCode();
        }
        String c2 = c(attributes, pPM);
        if (c2 != null) {
            myk.puc = c2;
        }
        return myk;
    }

    public static String c(Attributes attributes, String str) {
        if (attributes.getLength() == 0) {
            return null;
        }
        return attributes.getValue(aom.aTP, str);
    }

    public static int d(Attributes attributes, String str) {
        if (attributes.getLength() == 0) {
            return -1;
        }
        if (attributes instanceof svu) {
            return ((svu) attributes).gr(aom.aTP, str);
        }
        String value = attributes.getValue(aom.aTP, str);
        if (value != null) {
            return value.hashCode();
        }
        return -1;
    }

    public static Long e(Attributes attributes, String str) {
        str.contains(Message.SEPARATE2);
        ew.eG();
        String value = attributes.getValue(aom.aTP, str);
        if (value == null) {
            return null;
        }
        noa noa = new noa(value);
        if (noa.Dd == null) {
            return null;
        }
        if (noa.pQt == null) {
            return Long.valueOf(noa.Dd.longValue());
        }
        switch (noa.pQt) {
            case PT:
                return Long.valueOf((long) (noa.Dd.floatValue() * 20.0f));
            default:
                return Long.valueOf(noa.Dd.longValue());
        }
    }

    public static Boolean f(Attributes attributes, String str) {
        String value = attributes.getValue(aom.aTP, str);
        if (value == null) {
            return null;
        }
        return Ly(value);
    }

    public static mzq fw(String str, String str2) {
        int i;
        int i2 = 2;
        ew.eH();
        if (str == null) {
            i = 3;
        } else if (str.equalsIgnoreCase("text")) {
            i = 0;
        } else if (str.equalsIgnoreCase("margin")) {
            i = 1;
        } else if (str.equalsIgnoreCase("page")) {
            i = 2;
        } else {
            ew.eI();
            i = 2;
        }
        if (str2 == null) {
            i2 = 3;
        } else if (!str2.equalsIgnoreCase("text")) {
            if (str2.equalsIgnoreCase("margin")) {
                i2 = 0;
            } else if (str2.equalsIgnoreCase("page")) {
                i2 = 1;
            } else {
                ew.eI();
                i2 = 0;
            }
        }
        return mzq.hg(i2, i);
    }

    public static Integer g(Attributes attributes, String str) {
        String value = attributes.getValue("http://schemas.openxmlformats.org/officeDocument/2006/math", str);
        if (value == null) {
            return null;
        }
        return fk.E(value);
    }

    public static Float h(Attributes attributes, String str) {
        return LA(attributes.getValue(aom.aTP, str));
    }

    public static Integer i(Attributes attributes, String str) {
        String value = attributes.getValue(aom.aTP, str);
        if (value == null) {
            return null;
        }
        noa noa = new noa(value);
        if (noa.Dd == null) {
            return null;
        }
        if (noa.pQt == null) {
            return Integer.valueOf(noa.Dd.intValue());
        }
        switch (noa.pQt) {
            case PT:
                return Integer.valueOf((int) (noa.Dd.floatValue() * 20.0f));
            default:
                return Integer.valueOf(noa.Dd.intValue());
        }
    }

    public static Integer j(Attributes attributes, String str) {
        String value = attributes.getValue(aom.aTP, str);
        if (value == null) {
            return null;
        }
        return fk.G(value);
    }

    public static int k(TextDocument textDocument) {
        ew.assertNotNull("doc should not be null", textDocument);
        ew.assertNotNull("doc should not be null", textDocument);
        ArrayList<Integer> arrayList = textDocument.oRm;
        ew.assertNotNull("rsids should not be null", arrayList);
        int nextInt = pPO.nextInt();
        arrayList.add(Integer.valueOf(nextInt));
        return nextInt;
    }
}